package com.example.controller;


import com.alibaba.fastjson.JSONObject;
import com.example.service.ClosePayService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RestController
public class ClosePayController {


    @Autowired()
    private ClosePayService closePayService;

    @PostMapping("/v1/ClosePay")
    public String ClosePay(@RequestBody JSONObject reqJson) throws Exception {
        log.info("关闭订单前端请求的参数：--------------------------------->>>{}",reqJson);
        return closePayService.ClosePay(reqJson);
    }
}
